package com.nzx.business.user.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_user")
public class User implements Serializable{

	@TableId(value="id", type= IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer id;

	@TableField("name")
	@ApiModelProperty(value = "用户姓名")
	private String name;

	@TableField("sex")
	@ApiModelProperty(value = "性别: 0 女 1 男 2 其他")
	private Integer sex;

	@TableField("birthday")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "出生日期")
	private Date birthday;

	@TableField("nation")
	@ApiModelProperty(value = "民族")
	private String nation;

	@TableField("row_status")
	@ApiModelProperty(value = "状态: -1 删除 0 禁用 1 正常 ")
	private Integer rowStatus;
}